package main

import (
	"log"
	"net/http"
)

func main() {
	mux := http.NewServeMux()
	mux.Handle("/current/", http.StripPrefix("/current/", http.FileServer(http.Dir("/spool/asterisk/inOutTempOfWav"))))
	mux.Handle("/history/", http.StripPrefix("/history/", http.FileServer(http.Dir("/simpleconnect-record-wav"))))
	if err := http.ListenAndServe(":8000", mux); err != nil {
		log.Fatal(err)
	}
}
